class Add_oil1FormModel extends Backbone.Model
    url: '/mytable/getModel?s=table.creators.Add_oil1Table'
    initialize: (options) =>
        @fetch()
   
#--------------------------------------------------controler
class Add_oil1sApp
    search: =>
        myapp.mainRegion.close() 
        mymodel = new Add_oil1FormModel
        @layout = new ModelMainLayout(model: mymodel)
        myapp.mainRegion.show(@layout)

            

#--------------------------------------------------router
class Add_oil1sAppRouter extends Backbone.Marionette.AppRouter
    appRoutes: 
        "add_oil1s": "search"

                
myapp.addInitializer -> 
    myapp.Add_oil1s_app = new Add_oil1sApp()
    myapp.Add_oil1s_app.router = new Add_oil1sAppRouter controller: myapp.Add_oil1s_app

myapp.vent.trigger("routing:started")
